//
// Created by mac on 2019-08-12.
// Copyright (c) 2019 com.sw.village. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HealthSubmitUtils.h"


@implementation HealthSubmitUtils

/**
 * 状态描述
 * @param status
 * @return
 */
+ (NSString *)getSubmitStatusDesc:(NSInteger) status {
//    状态
    NSString *statusDesc = @"申报清单";
    if(status == HealthSubmitStatusNormal) {
        statusDesc = @"申报清单";
    }else if(status == HealthSubmitStatusSubmiting) {
        statusDesc = @"提交中";
    } else if(status == HealthSubmitStatusSubmitReject) {
        statusDesc = @"提交拒绝";
    }else if(status == HealthSubmitStatusSubmitSuccess) {
        statusDesc = @"提交成功";
    }else if(status == HealthSubmitStatusAppealing) {
        statusDesc = @"申诉中";
    }else if(status == HealthSubmitStatusAppealReject) {
        statusDesc = @"申诉拒绝";
    }else if(status == HealthSubmitStatusAppealSuccess) {
        statusDesc = @"申诉成功";
    }

    return [NSString stringWithFormat:@"卫生费-%@",statusDesc] ;
}
/**
 * 提示语
 * @param status
 * @return
 */
+ (NSString *)getSubmitTipDesc:(NSInteger) status {
//    状态
    NSString *tipDesc = @"请如实填实你的清单信息，并提交审核";
    if(status == HealthSubmitStatusNormal) {
        tipDesc = @"请如实填实你的清单信息，并提交审核";
    }else if(status == HealthSubmitStatusSubmiting) {
        tipDesc = @"提交中,请耐心等待";
    } else if(status == HealthSubmitStatusSubmitReject) {
        tipDesc = @"你的申报有误，经核查，你的卫生缴费清单如下";
    }else if(status == HealthSubmitStatusSubmitSuccess) {
        tipDesc = @"你的申报已核定通过，你的卫生缴费清单如下";
    }else if(status == HealthSubmitStatusAppealing) {
        tipDesc = @"你的申诉正在处理";
    }else if(status == HealthSubmitStatusAppealReject) {
        tipDesc = @"申诉拒绝，拒绝理由如下，可以重新申诉";
    }else if(status == HealthSubmitStatusAppealSuccess) {
        tipDesc = @"经现场双方核定，您的卫生缴费清单如下";
    }

    return tipDesc;
}
/**
 * 状态描述
 * @param status
 * @return
 */
+ (NSDictionary *)getActionButtonDict:(NSInteger) status {
//    状态
    NSString *buttonDesc = @"确认";
    NSString *selector = @"toBack";

    if(status == HealthSubmitStatusNormal) {
        buttonDesc = @"提交审核";
        selector = @"toSubmit";
    }else if(status == HealthSubmitStatusSubmiting) {

    } else if(status == HealthSubmitStatusSubmitReject) {
        buttonDesc = @"重新提交审核";
        selector = @"toAppeal";
    }else if(status == HealthSubmitStatusSubmitSuccess) {

    }else if(status == HealthSubmitStatusAppealing) {

    }else if(status == HealthSubmitStatusAppealReject) {

    }else if(status == HealthSubmitStatusAppealSuccess) {
        buttonDesc = @"缴费";
        selector = @"toPay";
    }
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    dict[@"title"] = buttonDesc;
    dict[@"selector"] = selector;

    return dict;
}


@end